home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
- <?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
- <?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
- <?xml-stylesheet href="chrome://global/skin/global.css"?>
- <?xml-stylesheet href="chrome://mozapps/content/preferences/preferences.css"?>
- <?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
-
- <!-- Locale info //-->
- <!DOCTYPE dialog SYSTEM "chrome://fasterfox/locale/pref-fasterfox.dtd">
-
- <!-- Fasterfox Preferences Options //-->
- <window
- title="&options.title;"
- orient="vertical"
- windowtype="Fasterfox:Options"
- id="pref-fasterfox"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:html="http://www.w3.org/1999/xhtml"
- onload="FF_windowOnLoad();sizeToContent();"
- headertitle="Fasterfox">
-
- <script type="application/x-javascript" src="chrome://fasterfox/content/pref-fasterfox.js"/>
- <script type="application/x-javascript" src="chrome://fasterfox/content/fasterfoxOverlay.js"/>
-
- <hbox align="start" orient="horizontal" style="background: #FFFFFF; border-bottom: 2px groove ThreeDFace;">
- <grid>
- <columns>
- <column style="padding-top:2px;padding-bottom:2px;padding-left:15px;padding-right:15px;background-color:#c0d2ee;"/>
- <column style="padding:6px;" flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <image src="chrome://fasterfox/skin/icon.png" style="width:32px;"/>
- <vbox>
- <text value="Fasterfox" style="font-weight: bold; font-size: x-large;"/>
- <text value=" http://fasterfox.mozdev.org/" class="url" onmouseover="this.style.cursor='pointer';"
- onclick="window.open('http://fasterfox.mozdev.org/');"/>
- </vbox>
- </row>
- </rows>
- </grid>
- </hbox>
-
- <tabbox class="settingsBox">
-
- <tabs id="ff_tabs" oncommand="parent.hPrefWindow.setPref('int', 'extensions.fasterfox.lastTab', document.getElementById('ff_tabs').selectedIndex);">
- <tab label="&main.tab;" id="ff_Main_tab" />
- <tab label="&prefetching.tab;" id="ff_Prefetching_tab" />
- <tab label="&cache.tab;" id="ff_Cache_tab" />
- <tab label="&connection.tab;" id="ff_Connection_tab" />
- <tab label="&pipelining.tab;" id="ff_Pipelining_tab" />
- <tab label="&rendering.tab;" id="ff_Rendering_tab" />
- <tab label="&popups.tab;" id="ff_Popups_tab" />
- </tabs>
-
- <tabpanels>
-
-
- <!-- MAIN PREFS -->
- <tabpanel id="Main">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&main.captionLabel;"/>
- <vbox flex="1">
- <radiogroup id="ff_presets" prefstring="extensions.fasterfox.preset" preftype="int"
- oncommand="if(document.getElementById('ff_presets').selectedIndex==4) {FF_displayTabs(true);} else {FF_displayTabs(false);}">
- <radio id="ff_default" label="&defaultPreset.label;" style="font-weight: bold;"
- oncommand="FF_setPreset(0);FF_displayTabs(false);ff_showTimer(true);" value="0"/>
- <description class="indent">&defaultPreset.desc;</description>
-
- <radio id="ff_goodNetCitizen" label="&courteousPreset.label;" style="font-weight: bold;"
- oncommand="FF_setPreset(1);FF_displayTabs(false);ff_showTimer(true);" value="1"/>
- <description class="indent">&courteousPreset.desc;</description>
-
- <radio id="ff_optimized" label="&optimizedPreset.label;" style="font-weight: bold;"
- oncommand="FF_setPreset(2);FF_displayTabs(false);ff_showTimer(true);" value="2"/>
- <description class="indent">&optimizedPreset.desc;</description>
-
- <radio id="ff_turboCharged" label="&turboPreset.label;" style="font-weight: bold;"
- oncommand="FF_setPreset(3);FF_displayTabs(false);ff_showTimer(true);" value="3"/>
- <description class="indent">&turboPreset.desc;</description>
-
- <radio id="ff_custom" label="&customPreset.label;" style="font-weight: bold;"
- oncommand="FF_displayTabs(true);" value="4"/>
- <description class="indent">&customPreset.desc;</description>
- </radiogroup>
- </vbox>
- </groupbox>
- </tabpanel>
-
-
- <!-- FASTERFOX PREFS -->
- <tabpanel id="Prefetching">
- <vbox flex="1">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption>
- <checkbox id="ff_enhancedPrefetching" label="&enablePrefetching.label;"
- prefstring="extensions.fasterfox.enhancedPrefetching" preftype="bool"
- oncommand="if(document.getElementById('ff_enhancedPrefetching').checked){FF_disableWhitelist(false);}else{FF_disableWhitelist(true);}"/>
- </caption>
- <description>&enablePrefetching.desc1;</description>
- <separator class="thin"/>
- <description class="url" onmouseover="this.style.cursor='pointer';" onclick="window.open('http://fasterfox.mozdev.org/');">&enablePrefetching.desc2;</description>
- <separator class="thin"/>
- <groupbox flex="1">
- <caption label="&whitelist.label;"/> <hbox flex="1">
- <listbox id="ff_whitelistbox" style="overflow: auto;" width="320" height="75" flex="1" seltype="single"
- onclick="if(document.getElementById('ff_whitelistbox').selectedIndex >= 0) {document.getElementById('ff_rmvbtn').disabled = '';} else {document.getElementById('ff_rmvbtn').disabled = 'true';}">
- </listbox>
- <textbox flex="1" id="ff_whitelist" hidden="true"
- prefstring="extensions.fasterfox.whitelist" preftype="char"/>
- <vbox flex="1">
- <textbox id="ff_addtxt" value=""/>
- <separator class="thin"/>
- <button id="ff_addbtn" label="&whitelist.add;"
- oncommand="FF_onAdd();"/>
- <button id="ff_rmvbtn" label="&whitelist.remove;" disabled="true"
- oncommand="FF_onRemove();" />
- </vbox> </hbox>
- </groupbox>
- </groupbox>
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&timer.captionLabel;"/>
- <vbox>
- <checkbox id="ff_pageLoadTimer" label="&timer.label;"
- prefstring="extensions.fasterfox.pageLoadTimer" preftype="bool"
- oncommand="if(document.getElementById('ff_pageLoadTimer').checked) {ff_showTimer(true);} else {ff_showTimer(false);}" />
- </vbox>
- <description>&timer.desc;</description>
- </groupbox>
- </vbox>
- </tabpanel>
-
-
- <!-- CACHE PREFS -->
- <tabpanel id="Cache">
- <vbox flex="1">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&cache.captionLabel;"/>
- <grid>
- <columns>
- <column flex="1"/>
- <column flex="1"/>
- <column flex="1"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <label control="ff_cacheMemoryCapacity" value="&memoryCache.label;"/>
- <textbox id="ff_cacheMemoryCapacity" size="7"
- prefstring="browser.cache.memory.capacity" preftype="int"/>
- <label control="ff_cacheDiskCapacity" value="&diskCache.label;"/>
- <textbox id="ff_cacheDiskCapacity" size="7"
- prefstring="browser.cache.disk.capacity" preftype="int"/>
- </row>
- </rows>
- </grid>
- <separator class="thin"/>
- <description>&cache.desc;</description>
- </groupbox>
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&dnscache.captionLabel;"/>
- <grid>
- <columns>
- <column flex="1"/>
- <column flex="1"/>
- <column flex="1"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <label control="ff_dnsCacheExpiration" value="&dnscacheExp.label;"/>
- <textbox id="ff_dnsCacheExpiration" size="7"
- prefstring="network.dnsCacheExpiration" preftype="int"/>
- <label control="ff_dnsCacheEntries" value="&dnscacheEntries.label;"/>
- <textbox id="ff_dnsCacheEntries" size="7"
- prefstring="network.dnsCacheEntries" preftype="int"/>
- </row>
- </rows>
- </grid>
- <separator class="thin"/>
- <description>&dnscache.desc;</description>
- </groupbox>
- </vbox>
- </tabpanel>
-
- <!-- HTTP CONNECTION PREFS -->
- <tabpanel id="Connection">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&connection.captionLabel;"/>
- <grid>
- <columns>
- <column flex="1"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <label control="ff_maxConnections" value="&connectionMaxConn.label;"/>
- <textbox id="ff_maxConnections" size="2"
- prefstring="network.http.max-connections" preftype="int"/>
- </row>
- <row align="center">
- <label control="ff_maxConnectionsPerServer" value="&connectionMaxConnServ.label;"/>
- <textbox id="ff_maxConnectionsPerServer" size="2"
- prefstring="network.http.max-connections-per-server" preftype="int"/>
- </row>
- <row align="center">
- <label control="ff_maxPersistentConnectionsPerServer" value="&connectionMaxPerConnServ.label;"/>
- <textbox id="ff_maxPersistentConnectionsPerServer" size="2"
- prefstring="network.http.max-persistent-connections-per-server" preftype="int"/>
- </row>
- <row align="center">
- <label control="ff_maxPersistentConnectionsPerProxy" value="&connectionMaxPerConnProxy.label;"/>
- <textbox id="ff_maxPersistentConnectionsPerProxy" size="2"
- prefstring="network.http.max-persistent-connections-per-proxy" preftype="int"/>
- </row>
- </rows>
- </grid>
- <separator class="thin"/>
- <description>&connection.desc;</description>
- </groupbox>
- </tabpanel>
-
- <!-- HTTP PIPELINING PREFS -->
- <tabpanel id="Pipelining">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&pipelining.captionLabel;"/>
- <vbox>
- <checkbox id="ff_pipelining" label="&pipeliningEnable.label;"
- prefstring="network.http.pipelining" preftype="bool"/>
- <checkbox id="ff_pipeliningFirstRequest" label="&pipeliningEnableFirst.label;"
- prefstring="network.http.pipelining.firstrequest" preftype="bool"/>
- <checkbox id="ff_proxyPipelining" label="&pipeliningEnableProxy.label;"
- prefstring="network.http.proxy.pipelining" preftype="bool"/>
- <grid flex="1">
- <columns>
- <column flex="1"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <label control="ff_maxPipeliningRequests" value="&pipeliningMax.label;"/>
- <textbox id="ff_maxPipeliningRequests" size="2"
- prefstring="network.http.pipelining.maxrequests" preftype="int"/>
- </row>
- </rows>
- </grid>
- </vbox>
- <separator class="thin"/>
- <description>&pipelining.desc;</description>
- </groupbox>
- </tabpanel>
-
- <!-- RENDERING PREFS -->
- <tabpanel id="Rendering">
- <vbox flex="1">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption>
- <checkbox id="ff_fastBackCheckbox" label="&fastback.label;"
- oncommand="if(document.getElementById('ff_fastBackCheckbox').checked){FF_disableFastBack(false);document.getElementById('ff_fastBack').value=5;}else{FF_disableFastBack(true);document.getElementById('ff_fastBack').value=0;}"/>
- </caption>
- <grid>
- <columns>
- <column flex="1"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <label control="ff_fastBack" value="&fastback.pagesInMem;"/>
- <textbox id="ff_fastBack" size="4"
- prefstring="browser.sessionhistory.max_viewers" preftype="int"/>
- </row>
- </rows>
- </grid>
- <separator class="thin"/>
- <description>&fastback.desc;</description>
- </groupbox>
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&rendering.captionLabel;"/>
- <grid>
- <columns>
- <column flex="1"/>
- <column flex="1"/>
- </columns>
- <rows>
- <row align="center">
- <label control="ff_initialPaintDelay" value="&renderingInitPait.label;"/>
- <textbox id="ff_initialPaintDelay" size="4"
- prefstring="nglayout.initialpaint.delay" preftype="int"/>
- </row>
- <row align="center">
- <label control="ff_uiSubmenuDelay" value="&renderingSubmenu.label;"/>
- <textbox id="ff_uiSubmenuDelay" size="4"
- prefstring="ui.submenuDelay" preftype="int"/>
- </row>
- </rows>
- </grid>
- <separator class="thin"/>
- <description>&rendering.desc;</description>
- </groupbox>
- </vbox>
- </tabpanel>
-
- <!-- POPUP PREFS -->
- <tabpanel id="Popups">
- <groupbox align="left" orient="vertical" flex="1" style="max-width: 450px">
- <caption label="&popups.captionLabel;"/>
- <vbox>
- <checkbox id="ff_disablePluginPopupsCheckbox" label="&popupsDisable.label;"
- oncommand="if(document.getElementById('ff_disablePluginPopupsCheckbox').checked) {document.getElementById('ff_disablePluginPopups').value=2;} else {document.getElementById('ff_disablePluginPopups').value=0;}"/>
- <textbox id="ff_disablePluginPopups" hidden="true"
- prefstring="privacy.popups.disable_from_plugins" preftype="int"/>
- </vbox>
- <separator class="thin"/>
- <description>&popups.desc1;</description>
- <separator class="thin"/>
- <description>&popups.desc2;</description>
- </groupbox>
- </tabpanel>
-
- </tabpanels>
-
- </tabbox>
-
- <hbox flex="1" align="right" style="padding:10px;height:75px;">
- <button dlgType="accept" label="&button.ok;" id="ff_btnok" oncommand="FF_onOK();window.close();" default="true"/>
- <button dlgType="cancel" label="&button.cancel;" id="ff_btncancel" oncommand="window.close();"/>
- </hbox>
-
- </window>